import 'package:flutter/material.dart';

class ParkDetail extends StatefulWidget{
  @override
  State<StatefulWidget> createState() => ParkDetailState();
}

class ParkDetailState extends State<ParkDetail>{
  @override
  void initState() {
    // TODO: implement initState
    super.initState();
  }

  @override
  Widget build(BuildContext context){
    return Scaffold(
       appBar: new AppBar(
          title: new Text("车场详情页",
           style: new TextStyle(
             color:Colors.white,
             fontSize: 20.0,

           ),
          ),
         backgroundColor: Colors.teal,
       ),
      body: Center(
        child: new Container(
          child: new Column(
            children: <Widget>[
              //停车场基本信息
              getParkInfo()


            ],
          ),
        ),
      ),


    );
  }

  Widget getParkInfo(){
      return new Container(
        padding: EdgeInsets.fromLTRB(20.0, 10.0, 20.0, 10.0),
        child: new Row(
          mainAxisAlignment: MainAxisAlignment.spaceBetween,//子组件的对齐方式
          children: <Widget>[
            Expanded(child: new Column(
              children: <Widget>[
                new Text("***大厦停车场",style: new TextStyle(
                   color: Colors.black,
                   fontSize: 24.0,
                   fontWeight:FontWeight.bold,
                ),),
                new Text("大慧寺东口至大柳树北口段东西两侧",style: new TextStyle(
                  color: Colors.grey,
                  fontSize: 14.0,
                ),
                ),
                new Row(
                  children: <Widget>[
                    new Text("编号 ：海1223",style: new TextStyle(
                      color: Colors.grey,
                      fontSize: 12.0,
                    ),
                    ),
                    new Padding(
                      padding: EdgeInsets.fromLTRB(20.0, 0, 0, 0),
                    ),
                    new Text("路上+地上",style: new TextStyle(
                      color: Colors.tealAccent,
                      fontSize: 12.0,
                    ),
                    ),
                  ],
                )
              ],
            )),
           Expanded(child: new Column(
             children: <Widget>[
               new Text("去看看",style: new TextStyle(
                 color: Colors.tealAccent,
                 fontSize: 14.0,
               ),
               ),

             ],
           )),
          ],
        ),
      );
  }
}